<!--
  @author tanbiao
  @since 2019-11-21 18:56:50
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--表格id与lay-filter属性一致，统一定义为zmn-table-->
<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead >

        <tr>
            <th lay-data="{field:'tariffName', width:200, unresize:false, align:'center',fixed:'left'}">价格表名称</th>
            <th lay-data="{field:'tariffType', width:100, unresize:false, align:'center',fixed:'left'}">价格表类型</th>
            <!--<th lay-data="{field:'categOneName', width:100, unresize:false, align:'center',fixed:'left'}">一级分类</th>-->
            <!--<th lay-data="{field:'categName', width:100, unresize:false, align:'center',fixed:'left'}">二级分类</th>-->
            <th lay-data="{field:'productName', width:200, unresize:false, align:'center',fixed:'left'}">产品名称</th>
            <th lay-data="{field:'groupName', minWidth:100, unresize:false, align:'center',fixed:'left'}">项目分组</th>
            <th lay-data="{field:'itemName', width:200, unresize:false, align:'center',fixed:'left'}">项目名称</th>
            <th lay-data="{field:'bizType', width:100, unresize:false, align:'center',fixed:'left'}">业务类型</th>

            <th lay-data="{field:'priceStr', minWidth:120, unresize:false, align:'center'}">销售价</th>
            <th lay-data="{field:'internalSettlementPriceStr', minWidth:90, unresize:false, align:'right'}">内部价</th>
            <th lay-data="{field:'externalSettlementPriceStr', minWidth:90, unresize:false, align:'right'}">外部价</th>
            <th lay-data="{field:'priceSplit', width:90, unresize:false, align:'center'}">区分明细</th>
            <th lay-data="{field:'priceSplitType', width:90, unresize:false, align:'center'}">明细类型</th>
            <th lay-data="{field:'trafficFee', width:90, unresize:false, align:'right',hide:true}">路途往返费</th>
            <th lay-data="{field:'hourFeeStr', width:90, unresize:false, align:'right',hide:true}">工时费</th>
            <th lay-data="{field:'checkFeeStr', width:90, unresize:false, align:'right',hide:true}">检测费</th>
            <th lay-data="{field:'servicePriceStr', width:90, unresize:false, align:'right',hide:true}">技术服务费</th>
            <th lay-data="{field:'partPriceStr', width:90, unresize:false, align:'right',hide:true}">配件包干费</th>
            <th lay-data="{field:'artPriceStr', width:90, unresize:false, align:'right',hide:true}">工艺费</th>
            <th lay-data="{field:'guaranteePriceStr', width:90, unresize:false, align:'right',hide:true}">保修费</th>
            <th lay-data="{field:'materialFee', width:90, unresize:false, align:'right',hide:true}">材料费</th>
            <th lay-data="{field:'factoryFee', width:90, unresize:false, align:'right',hide:true}">工艺费(明细二)</th>
            <th lay-data="{field:'numberStep', width:90, unresize:false, align:'right',hide:true}">阶梯值</th>
            <th lay-data="{field:'numberStepDown', width:90, unresize:false, align:'right',hide:true}">阶梯降幅</th>
            <th lay-data="{field:'baseDiscount', width:90, unresize:false, align:'right',hide:true}">底折</th>
            <th lay-data="{field:'priceStandard', width:80, unresize:false, align:'center',hide:true}">一口价</th>
            <th lay-data="{field:'unit', width:60, unresize:false, align:'center',hide:true}">单位</th>
            <th lay-data="{field:'general', width:80, unresize:false, align:'center',hide:true}">默认项目</th>
            <th lay-data="{field:'countLimit', width:80, unresize:false, align:'right',hide:true}">最大数量</th>
            <th lay-data="{field:'mutexMode', width:80, unresize:false, align:'center',hide:true}">互斥性</th>
            <th lay-data="{field:'cityLimit', width:80, unresize:false, align:'center',hide:true}">城市系数</th>
            <th lay-data="{field:'brandLimit', width:80, unresize:false, align:'center',hide:true}">品牌系数</th>
            <th lay-data="{field:'faultCategName', width:100, unresize:false, align:'center',hide:true}">项目类型名称</th>
            <th lay-data="{field:'manualPrice', width:80, unresize:false, align:'center',hide:true}">修改价格</th>
            <th lay-data="{field:'editEnable', width:80, unresize:false, align:'center',hide:true}">APP编辑</th>
            <th lay-data="{field:'show', width:80, unresize:false, align:'center',hide:true}">APP显示</th>
            <th lay-data="{field:'takePicture', width:80, unresize:false, align:'center',hide:true}">工程师拍照</th>
<!--            <th lay-data="{field:'afterService', width:80, unresize:false, align:'center'}">是否保修</th>-->
<!--            <th lay-data="{field:'afterServiceDesc', width:80, unresize:false, align:'center'}">保修范围</th>-->
<!--            <th lay-data="{field:'afterServiceDay', width:80, unresize:false, align:'center'}">保修天数</th>-->
        </tr>
    </thead>
    <tbody>
        <tr th:each="item:${items}">
            <td th:text="${item.tariffName}">tariffName</td>
            <!--<td th:text="${item.tariffType==1?'服务价格':'计价器价格'}">tariffType</td>-->
            <td th:switch="${item.tariffType}">
                <div th:case="1">服务价格</div>
                <div th:case="2">计价器价格</div>
                <div th:case="3">提前付价格</div>
                <div th:case="4">计价器3.0价格</div>
            </td>
            <!--<td th:text="${item.categOneName}">categOneName</td>-->
            <!--<td th:text="${item.categName}">categName</td>-->
            <td th:text="${item.productName}">productName</td>
            <td th:text="${item.groupName}">groupName</td>
            <td th:text="${item.itemName}">itemName</td>
            <td th:switch="${vo.bizType}">
                <div th:case="1">C-保外业务</div>
                <div th:case="2">F-保内业务</div>
                <div th:case="3">B-工程业务</div>
            </td>
            <td>
                <div style="text-align: right">
                    [[${item.priceStr=='--'?'面议':item.priceStr}]]
                </div>
            </td>
            <td>
                <div style="text-align: right">
                    [[${item.internalSettlementPriceStr=='--'?'面议':item.internalSettlementPriceStr}]]
                </div>
            </td>
            <td>
                <div style="text-align: right">
                    [[${item.externalSettlementPriceStr=='--'?'面议':item.externalSettlementPriceStr}]]
                </div>
            </td>
            <td th:text="${item.priceSplit==1?'不区分':'区分'}">priceSplit</td>
            <td th:text="${item.priceSplitType==null?'--':(item.priceSplitType==1?'明细一':'明细二(阶梯价)')}">priceSplitType</td>
            <td>
                <div style="text-align: right">
                    [[${item.trafficFeeStr}]]
                </div>
            </td>
            <td>
                <div style="text-align: right">
                    [[${item.hourFeeStr}]]
                </div>
            </td>
            <td>
                <div style="text-align: right">
                    [[${item.checkFeeStr}]]
                </div>
            </td>
            <td>
                <div style="text-align: right">
                    [[${item.servicePriceStr}]]
                </div>
            </td>
            <td>
                <div style="text-align: right">
                    [[${item.partPriceStr}]]
                </div>
            </td>
            <td>
                <div style="text-align: right">
                    [[${item.artPriceStr}]]
                </div>
            </td>
            <td>
                <div style="text-align: right">
                    [[${item.guaranteePriceStr}]]
                </div>
            </td>
            <td th:text="${item.materialFee==null?'--':item.materialFee+'%'}">materialFee</td>
            <td th:text="${item.materialFee==null?'--':(100-item.materialFee)+'%'}">factoryFee</td>
            <td th:text="${item.numberStep==null?'--':item.numberStep+'%'}">numberStep</td>
            <td th:text="${item.numberStepDown==null?'--':item.numberStepDown+'%'}">numberStepDown</td>
            <td th:text="${item.baseDiscount==null?'--':item.baseDiscount+'%'}">baseDiscount</td>

            <td th:text="${item.priceStandard==1?'非一口价':'一口价'}">priceStandard</td>
            <td th:text="${item.unit}">unit</td>
            <td th:text="${item.general==1?'非默认':'默认'}">general</td>
            <td th:text="${item.countLimit==null?'不限':item.countLimit}">countLimit</td>
            <td th:text="${T(com.zmn.plat.manager.dictionary.ProductDict).getMutex(item.mutexMode)}">mutexMode</td>
            <td th:text="${item.cityLimit==1?'不影响':'影响'}">cityLimit</td>
            <td th:text="${item.brandLimit==1?'不影响':'影响'}">brandLimit</td>
            <td th:text="${item.faultCategName}">faultCategName</td>
            <td th:text="${item.manualPrice==1?'不修改':'修改'}">manualPrice</td>
            <td th:text="${item.editEnable==1?'不编辑':'编辑'}">editEnable</td>
            <td th:text="${item.show==1?'不显示':'显示'}">show</td>
            <td th:text="${item.takePicture==1?'不拍照':'拍照'}">takePicture</td>
<!--            <td th:switch="${item.afterService}" style="text-align: center">-->
<!--                <div th:case="1">部分保修</div>-->
<!--                <div th:case="2">整机保修</div>-->
<!--                <div th:case="3">不保修</div>-->
<!--            </td>-->
<!--            <td th:text="${item.afterServiceDesc}">afterServiceDesc</td>-->
<!--            <td th:text="${item.afterServiceDay}">afterServiceDay</td>-->
        </tr>
    </tbody>
</table>
